﻿<%@ Page Language="C#" MasterPageFile="~/MainMT.master" AutoEventWireup="true" CodeFile="Myinfo.aspx.cs" Inherits="Myinfo" Title="无锡校园人才网-个人信息管理" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <link href="css/stujob.css" rel="stylesheet" />
    <link href="css/default.css" rel="stylesheet" />
    <link href="css/Abort.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="leftmain">
        <div class="leftBox">
            <div class="loginChioce">
                <span class="leftTop">个人信息</span>
            </div>
            <div>
                <table class="abortTable" border="0" cellspacing="0" cellpadding="5">
                    <tr>
                        <td>
                            <asp:LinkButton ID="LinkButton1" CssClass="wordMaster" runat="server" CausesValidation="False" OnClick="LinkButton1_Click">基本信息</asp:LinkButton>
                        </td>
                    </tr>
                    <tr class="odd">
                        <td>
                            <asp:LinkButton ID="LinkButton2" CssClass="wordMaster" runat="server" CausesValidation="False" OnClick="LinkButton2_Click">头像信息</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:LinkButton ID="LinkButton3" CssClass="wordMaster" runat="server" CausesValidation="False" OnClick="LinkButton3_Click">修改密码</asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>

    <div class="rightmain" style="width: 768px;">
        <div class="rightHeader1">
            <div class="rightHLeft"><span class="rightHeaderTitle">当前位置</span></div>
            <div class="rightHMiddle2">
                <span>
                    <a href="Default.aspx" class="moreRight" style="float: left;">首页</a> <span class="jian">></span>
                    <a href="Myinfo.aspx" class="moreRight" style="float: left;">我的信息</a><asp:Label ID="Label2" runat="server"></asp:Label>
                </span>
            </div>
            <div class="rightHRight"></div>
        </div>
        <div class="zpinfo">
            <div style="text-align: right">
                <asp:MultiView ID="MV" runat="server">
                    <asp:View ID="View1" runat="server">
                        <asp:FormView ID="FormView1" runat="server" DataKeyNames="pid"
                            DataSourceID="SqlDataSource1" DefaultMode="Edit"
                            HorizontalAlign="Center" Width="493px">
                            <EditItemTemplate>
                                <table style="width: 100%; border-top: silver 1px solid;">
                                    <tr>
                                        <td style="width: 86px;text-align:right;">姓名：</td>
                                        <td style="width: 183px;text-align:left;">&nbsp;<asp:Label ID="Label3" runat="server" Text='<%# Eval("pname") %>'></asp:Label></td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="text-align:right;">性别：</td>
                                        <td style="text-align:left;">
                                            <asp:DropDownList ID="DropDownList1" runat="server"
                                                SelectedValue='<%# Bind("psex") %>'>
                                                <asp:ListItem>男</asp:ListItem>
                                                <asp:ListItem>女</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="text-align:right;">年龄：</td>
                                        <td style="text-align:left">
                                            <asp:TextBox ID="pageTextBox" runat="server" Text='<%# Bind("page") %>' />
                                        </td>
                                        <td style="text-align:left;">
                                            <asp:RangeValidator ID="RangeValidator1" runat="server"
                                                ControlToValidate="pageTextBox" Display="Dynamic" ErrorMessage="年龄错误(18-50)！"
                                                MaximumValue="50" MinimumValue="18" Type="Integer" ValidationGroup="2"></asp:RangeValidator>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                                ControlToValidate="pageTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align:right;">户籍：</td>
                                        <td style="text-align:left;">
                                            <asp:TextBox ID="phouseholderTextBox" runat="server"
                                                Text='<%# Bind("phouseholder") %>' />
                                        </td>
                                        <td style="text-align: left">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                                                ControlToValidate="phouseholderTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align:right;">现住：</td>
                                        <td style="text-align:left;">
                                            <asp:TextBox ID="paddTextBox" runat="server" Text='<%# Bind("padd") %>' />
                                        </td>
                                        <td style="text-align: left">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
                                                ControlToValidate="paddTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align:right;">学校：</td>
                                        <td style="text-align:left;">
                                            <asp:TextBox ID="pschoolTextBox" runat="server" Text='<%# Bind("pschool") %>' />
                                        </td>
                                        <td style="text-align: left">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
                                                ControlToValidate="pschoolTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align:right;">电话：</td>
                                        <td style="text-align:left;">
                                            <asp:TextBox ID="ptelTextBox" runat="server" Text='<%# Bind("ptel") %>' />
                                        </td>
                                        <td style="text-align: left">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
                                            ControlToValidate="ptelTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align:right;">E-Mail：</td>
                                        <td style="text-align:left;">
                                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("pemail") %>'></asp:Label>
                                        </td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="text-align:right;">学历：</td>
                                        <td style="text-align:left;">
                                            <asp:DropDownList ID="ddlpk" runat="server"
                                                SelectedValue='<%# Bind("pknowledge") %>'>
                                                <asp:ListItem>大专</asp:ListItem>
                                                <asp:ListItem>本科</asp:ListItem>
                                                <asp:ListItem>研究生</asp:ListItem>
                                                <asp:ListItem>硕士</asp:ListItem>
                                                <asp:ListItem>博士</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td>&nbsp;</td>
                                    </tr>
                                </table>
                                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" BackColor="#159fde" ForeColor="White"
                                    CommandName="Update" Text="修改信息" />
                                &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" BackColor="#159fde" ForeColor="White" 
                                    Text="取消" />
                            </EditItemTemplate>
                            <InsertItemTemplate>
                                pid:
                                <asp:TextBox ID="pidTextBox" runat="server" Text='<%# Bind("pid") %>' />
                                <br />
                                pname:
                                <asp:TextBox ID="pnameTextBox" runat="server" Text='<%# Bind("pname") %>' />
                                <br />
                                ppwd:
                                <asp:TextBox ID="ppwdTextBox" runat="server" Text='<%# Bind("ppwd") %>' />
                                <br />
                                psex:
                                <asp:TextBox ID="psexTextBox" runat="server" Text='<%# Bind("psex") %>' />
                                <br />
                                page:
                                <asp:TextBox ID="pageTextBox" runat="server" Text='<%# Bind("page") %>' />
                                <br />
                                pzy:
                                <asp:TextBox ID="pzyTextBox" runat="server" Text='<%# Bind("pzy") %>' />
                                <br />
                                pmz:
                                <asp:TextBox ID="pmzTextBox" runat="server" Text='<%# Bind("pmz") %>' />
                                <br />
                                pimgs:
                                <asp:TextBox ID="pimgsTextBox" runat="server" Text='<%# Bind("pimgs") %>' />
                                <br />
                                pzzface:
                                <asp:TextBox ID="pzzfaceTextBox" runat="server" Text='<%# Bind("pzzface") %>' />
                                <br />
                                padd:
                                <asp:TextBox ID="paddTextBox" runat="server" Text='<%# Bind("padd") %>' />
                                <br />
                                phouseholder:
                                <asp:TextBox ID="phouseholderTextBox" runat="server"
                                    Text='<%# Bind("phouseholder") %>' />
                                <br />
                                ptel:
                                <asp:TextBox ID="ptelTextBox" runat="server" Text='<%# Bind("ptel") %>' />
                                <br />
                                pemail:
                                <asp:TextBox ID="pemailTextBox" runat="server" Text='<%# Bind("pemail") %>' />
                                <br />
                                pschool:
                                <asp:TextBox ID="pschoolTextBox" runat="server" Text='<%# Bind("pschool") %>' />
                                <br />
                                pknowledge:
                                <asp:TextBox ID="pknowledgeTextBox" runat="server"
                                    Text='<%# Bind("pknowledge") %>' />
                                <br />
                                pcid:
                                <asp:TextBox ID="pcidTextBox" runat="server" Text='<%# Bind("pcid") %>' />
                                <br />
                                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"
                                    CommandName="Insert" Text="插入" />
                                &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server"
                                    CausesValidation="False" CommandName="Cancel" Text="取消" />
                            </InsertItemTemplate>
                            <ItemTemplate>
                                pid:
                                <asp:Label ID="pidLabel" runat="server" Text='<%# Eval("pid") %>' />
                                <br />
                                pname:
                                <asp:Label ID="pnameLabel" runat="server" Text='<%# Bind("pname") %>' />
                                <br />
                                ppwd:
                                <asp:Label ID="ppwdLabel" runat="server" Text='<%# Bind("ppwd") %>' />
                                <br />
                                psex:
                                <asp:Label ID="psexLabel" runat="server" Text='<%# Bind("psex") %>' />
                                <br />
                                page:
                                <asp:Label ID="pageLabel" runat="server" Text='<%# Bind("page") %>' />
                                <br />
                                pzy:
                                <asp:Label ID="pzyLabel" runat="server" Text='<%# Bind("pzy") %>' />
                                <br />
                                pmz:
                                <asp:Label ID="pmzLabel" runat="server" Text='<%# Bind("pmz") %>' />
                                <br />
                                pimgs:
                                <asp:Label ID="pimgsLabel" runat="server" Text='<%# Bind("pimgs") %>' />
                                <br />
                                pzzface:
                                <asp:Label ID="pzzfaceLabel" runat="server" Text='<%# Bind("pzzface") %>' />
                                <br />
                                padd:
                                <asp:Label ID="paddLabel" runat="server" Text='<%# Bind("padd") %>' />
                                <br />
                                phouseholder:
                                <asp:Label ID="phouseholderLabel" runat="server"
                                    Text='<%# Bind("phouseholder") %>' />
                                <br />
                                ptel:
                                <asp:Label ID="ptelLabel" runat="server" Text='<%# Bind("ptel") %>' />
                                <br />
                                pemail:
                                <asp:Label ID="pemailLabel" runat="server" Text='<%# Bind("pemail") %>' />
                                <br />
                                pschool:
                                <asp:Label ID="pschoolLabel" runat="server" Text='<%# Bind("pschool") %>' />
                                <br />
                                pknowledge:
                                <asp:Label ID="pknowledgeLabel" runat="server"
                                    Text='<%# Bind("pknowledge") %>' />
                                <br />
                                pcid:
                                <asp:Label ID="pcidLabel" runat="server" Text='<%# Bind("pcid") %>' />
                                <br />
                                <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" BackColor="#159fde" ForeColor="White"
                                    CommandName="Edit" Text="编辑" />
                                &nbsp;<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" BackColor="#159fde" ForeColor="White"
                                    CommandName="Delete" Text="删除" />
                                &nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" BackColor="#159fde" ForeColor="White"
                                    CommandName="New" Text="新建" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" />
                            <HeaderTemplate>
                                <span style="color:#159fde;font-weight:600;font-size:16px;">基本信息</span>
                            </HeaderTemplate>
                        </asp:FormView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                            ConflictDetection="CompareAllValues"
                            ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                            DeleteCommand="DELETE FROM [tb_person] WHERE [pid] = @original_pid AND [pname] = @original_pname AND [ppwd] = @original_ppwd AND [psex] = @original_psex AND [page] = @original_page AND [pzy] = @original_pzy AND [pmz] = @original_pmz AND [pimgs] = @original_pimgs AND [pzzface] = @original_pzzface AND [padd] = @original_padd AND [phouseholder] = @original_phouseholder AND [ptel] = @original_ptel AND [pemail] = @original_pemail AND [pschool] = @original_pschool AND [pknowledge] = @original_pknowledge AND [pcid] = @original_pcid"
                            InsertCommand="INSERT INTO [tb_person] ([pid], [pname], [ppwd], [psex], [page], [pzy], [pmz], [pimgs], [pzzface], [padd], [phouseholder], [ptel], [pemail], [pschool], [pknowledge], [pcid]) VALUES (@pid, @pname, @ppwd, @psex, @page, @pzy, @pmz, @pimgs, @pzzface, @padd, @phouseholder, @ptel, @pemail, @pschool, @pknowledge, @pcid)"
                            OldValuesParameterFormatString="original_{0}"
                            SelectCommand="SELECT * FROM [tb_person] WHERE ([pid] = @pid)"
                            UpdateCommand="UPDATE [tb_person] SET [psex] = @psex, [page] = @page, [padd] = @padd, [phouseholder] = @phouseholder, [ptel] = @ptel, [pschool] = @pschool, [pknowledge] = @pknowledge WHERE [pid] = @original_pid">
                            <SelectParameters>
                                <asp:SessionParameter Name="pid" SessionField="person" Type="String" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="original_pid" Type="String" />
                                <asp:Parameter Name="original_pname" Type="String" />
                                <asp:Parameter Name="original_ppwd" Type="String" />
                                <asp:Parameter Name="original_psex" Type="String" />
                                <asp:Parameter Name="original_page" Type="String" />
                                <asp:Parameter Name="original_pzy" Type="String" />
                                <asp:Parameter Name="original_pmz" Type="String" />
                                <asp:Parameter Name="original_pimgs" Type="String" />
                                <asp:Parameter Name="original_pzzface" Type="String" />
                                <asp:Parameter Name="original_padd" Type="String" />
                                <asp:Parameter Name="original_phouseholder" Type="String" />
                                <asp:Parameter Name="original_ptel" Type="String" />
                                <asp:Parameter Name="original_pemail" Type="String" />
                                <asp:Parameter Name="original_pschool" Type="String" />
                                <asp:Parameter Name="original_pknowledge" Type="String" />
                                <asp:Parameter Name="original_pcid" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="pname" Type="String" />
                                <asp:Parameter Name="psex" Type="String" />
                                <asp:Parameter Name="page" Type="String" />
                                <asp:Parameter Name="padd" Type="String" />
                                <asp:Parameter Name="phouseholder" Type="String" />
                                <asp:Parameter Name="ptel" Type="String" />
                                <asp:Parameter Name="pschool" Type="String" />
                                <asp:Parameter Name="pknowledge" Type="String" />
                                <asp:Parameter Name="original_pid" Type="String" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="pid" Type="String" />
                                <asp:Parameter Name="pname" Type="String" />
                                <asp:Parameter Name="ppwd" Type="String" />
                                <asp:Parameter Name="psex" Type="String" />
                                <asp:Parameter Name="page" Type="String" />
                                <asp:Parameter Name="pzy" Type="String" />
                                <asp:Parameter Name="pmz" Type="String" />
                                <asp:Parameter Name="pimgs" Type="String" />
                                <asp:Parameter Name="pzzface" Type="String" />
                                <asp:Parameter Name="padd" Type="String" />
                                <asp:Parameter Name="phouseholder" Type="String" />
                                <asp:Parameter Name="ptel" Type="String" />
                                <asp:Parameter Name="pemail" Type="String" />
                                <asp:Parameter Name="pschool" Type="String" />
                                <asp:Parameter Name="pknowledge" Type="String" />
                                <asp:Parameter Name="pcid" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </asp:View>
                    <asp:View ID="View2" runat="server">
                        <div style="width: 493px; margin:0 auto;border-bottom: silver 1px solid;text-align:left;">
                            <span style="color:#159fde;font-weight:600;font-size:16px;">修改密码</span>
                        </div>
                        <table style="width: 493px; margin:0 auto">
                            <tr>
                                <td style="width: 86px;text-align:right;">旧密码：</td>
                                <td style="width: 183px;text-align:left;">
                                    <asp:TextBox ID="txtoldpwd" TextMode="Password" runat="server" Height="20px" Width="152px"></asp:TextBox>
                                </td>
                                <td style="text-align:left;">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                        ControlToValidate="txtoldpwd" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right;">新密码：</td>
                                <td style="text-align:left;">
                                    <asp:TextBox ID="txtnewpwd" runat="server" TextMode="Password" Height="20px" Width="152px"></asp:TextBox>
                                </td>
                                <td style="text-align:left;">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"
                                        ControlToValidate="txtnewpwd" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right;">确认密码：</td>
                                <td style="text-align:left;">
                                    <asp:TextBox ID="txtvapwd" runat="server" TextMode="Password" Height="20px" Width="152px"></asp:TextBox>
                                </td>
                                <td style="text-align:left;">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server"
                                        ControlToValidate="txtvapwd" ErrorMessage="*"></asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server"
                                        ControlToCompare="txtnewpwd" ControlToValidate="txtvapwd"
                                        ErrorMessage="确认密码错误！"></asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                 <td colspan="3">
                                     <asp:Button ID="Button1" runat="server" Text="修 改" OnClick="Button1_Click1" BackColor="#159fde" ForeColor="White"/>
                                 </td>
                             </tr>       
                        </table>
                        
                    </asp:View>
                    <asp:View ID="View3" runat="server">
                        <asp:FormView ID="FormView2" runat="server" DataKeyNames="pid"
                            DataSourceID="SqlDataSource2" DefaultMode="Edit" HorizontalAlign="Center"
                            Width="493px">
                            <EditItemTemplate>
                                <table style="width: 100%;">
                                    <tr>
                                        <td colspan="2" style="height: 16px">
                                            <table style="width: 494px; border-bottom: silver 1px solid">
                                                <tr>
                                                    <td style="width: 139px; height: 16px; text-align: left">
                                                        <span style="color:#159fde;font-weight:600;font-size:16px;">修改头像</span></td>
                                                    <td style="height: 16px"></td>
                                                    <td style="width: 256px; height: 16px"></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 256px">
                                            <asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("pname") %>'
                                                Height="91px" ImageUrl='<%# "~/images/person/"+Eval("pimgs") %>'
                                                Width="110px" />
                                        </td>
                                        <td style="width: 315px">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="width: 256px">
                                            <asp:TextBox ID="pimgsTextBox" runat="server" Enabled="False" ReadOnly="True"
                                                Text='<%# Bind("pimgs") %>' Width="70px" />
                                        </td>
                                        <td style="width: 315px; text-align: left">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server"
                                                ControlToValidate="pimgsTextBox" ErrorMessage="*"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 256px">
                                            <asp:FileUpload ID="FU" runat="server" Width="171px" />
                                        </td>
                                        <td style="width: 315px; text-align: left">
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                                ControlToValidate="FU" Display="Dynamic" ErrorMessage="请选图片！"
                                                ValidationExpression="(\S+.gif)|(\S+.png)|(\S+.jpg)|(\S+.jpeg)|(\S+.bmp)"
                                                ValidationGroup="up"></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 256px">
                                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="上传"
                                                ValidationGroup="up" />
                                        </td>
                                        <td style="width: 315px">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td style="width: 256px">&nbsp;</td>
                                        <td style="width: 315px">
                                            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" BackColor="#159fde" ForeColor="White"
                                                CommandName="Update" Text="修改头像" />
                                            <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" BackColor="#159fde" ForeColor="White"
                                                CommandName="Cancel" Text="取消" />
                                        </td>
                                    </tr>
                                </table>
                            </EditItemTemplate>
                            <InsertItemTemplate>
                                pimgs:
                            <asp:TextBox ID="pimgsTextBox" runat="server" Text='<%# Bind("pimgs") %>' />
                                <br />
                                pid:
                            <asp:TextBox ID="pidTextBox" runat="server" Text='<%# Bind("pid") %>' />
                                <br />
                                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"
                                    CommandName="Insert" Text="插入" />
                                &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server"
                                    CausesValidation="False" CommandName="Cancel" Text="取消" />
                            </InsertItemTemplate>
                            <ItemTemplate>
                                pimgs:
                            <asp:Label ID="pimgsLabel" runat="server" Text='<%# Bind("pimgs") %>' />
                                <br />
                                pid:
                            <asp:Label ID="pidLabel" runat="server" Text='<%# Eval("pid") %>' />
                                <br />
                                <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" BackColor="#159fde" ForeColor="White"
                                    CommandName="Edit" Text="编辑" />
                                &nbsp;<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" BackColor="#159fde" ForeColor="White"
                                    CommandName="Delete" Text="删除" />
                                &nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" BackColor="#159fde" ForeColor="White"
                                    CommandName="New" Text="新建" />
                            </ItemTemplate>
                        </asp:FormView>
                        <asp:SqlDataSource ID="SqlDataSource2" runat="server"
                            ConflictDetection="CompareAllValues"
                            ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                            DeleteCommand="DELETE FROM [tb_person] WHERE [pid] = @original_pid"
                            InsertCommand="INSERT INTO [tb_person] ([pimgs], [pid]) VALUES (@pimgs, @pid)"
                            OldValuesParameterFormatString="original_{0}"
                            SelectCommand="SELECT tb_person.* FROM tb_person WHERE (pid = @pid)"
                            UpdateCommand="UPDATE [tb_person] SET [pimgs] = @pimgs WHERE [pid] = @original_pid">
                            <SelectParameters>
                                <asp:SessionParameter Name="pid" SessionField="person" Type="String" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="original_pid" Type="String" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="pimgs" Type="String" />
                                <asp:Parameter Name="original_pid" Type="String" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="pimgs" Type="String" />
                                <asp:Parameter Name="pid" Type="String" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </asp:View>
                </asp:MultiView>
            </div>
        </div>
    </div>

</asp:Content>

